package entity

type Lose struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	EbikeId int64 `gorm:"column:ebike_id;type:BIGINT" json:"ebike_id"`

	UserId int64 `gorm:"column:user_id;type:BIGINT" json:"user_id"`

	Addr string `gorm:"column:addr;type:VARCHAR(255)" json:"addr"`

	LoseTime int64 `gorm:"column:lose_time;type:BIGINT" json:"lose_time"`

	Status int `gorm:"column:status;type:TINYINT" json:"status"`

	LockStatus int `gorm:"column:lock_status;type:TINYINT" json:"lock_status"`

	Result string `gorm:"column:result;type:VARCHAR(255)" json:"result"`

	SolverId int64 `gorm:"column:solver_id;type:BIGINT" json:"solver_id"`

	Desc string `gorm:"column:desc;type:VARCHAR(255)" json:"desc"`

	LoseType int `json:"lose_type"`

	EbikeName  string `json:"ebike_name"`
	EbikeImage string `json:"ebike_image"`
	BatteryNo  string `json:"battery_no"`

	EbikeTypeId int64 `json:"ebike_type_id"`
	CreatedAt   int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Lose) TableName() string {
	return "loses"
}
